package com.example.toolproject.demo.service.serviceimpl;

import com.example.toolproject.demo.domain.Explain;
import com.example.toolproject.demo.mapper.ExplainMapper;
import com.example.toolproject.demo.service.ExplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName ExplainServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2020-08-26 17:18
 **/
@Service
public class ExplainServiceImpl implements ExplainService {

    @Autowired
    private ExplainMapper explainMapper;

    /**
     * 查询具体内容
     * @param id
     * @return
     */
    @Override
    public Explain getExplainById(int id) {
        return explainMapper.getExplainById(id);
    }

    /**
     * 修改内容
     * @param explain
     * @return
     */
    @Override
    public boolean updateExplain(Explain explain) {
        return explainMapper.updateExplain(explain);
    }
}
